package com.wangshili.pojo.sys.entity;

import java.io.Serializable;

import java.util.Date;

/**
 * 
 * 封装日志管理页数据源的实体类对象
 * @author wangshili
 *
 */

public class SysLog implements Serializable{//用于存储的类最好都加上继承序列化接口，当需要通过对外直接传递类的时候用到
	/**
	 * 
	 */
	private static final long serialVersionUID = 8635151425159740778L;


        private Integer id;

        //用户名

        private String username;

        //用户操作

        private String operation;

        //请求方法

        private String method;

        //请求参数

        private String params;

        //执行时长(毫秒)

        private Long time;

        //IP地址

        private String ip;

        //创建时间

        private Date createdTime;


        /**设置：*/

        public void setId(Integer id) {

                this.id = id;

        }

        /**获取：*/

        public Integer getId() {

                return id;

        }

        /**设置：用户名*/

        public void setUsername(String username) {

                this.username = username;

        }

        /** 获取：用户名*/

        public String getUsername() {

                return username;

        }

        /**设置：用户操作*/

        public void setOperation(String operation) {

                this.operation = operation;

        }

        /**获取：用户操作*/

        public String getOperation() {

                return operation;

        }

        /**设置：请求方法*/

        public void setMethod(String method) {

                this.method = method;

        }

        /**获取：请求方法*/

        public String getMethod() {

                return method;

        }

        /** 设置：请求参数*/

        public void setParams(String params) {

                this.params = params;

        }

        /** 获取：请求参数 */

        public String getParams() {

                return params;

        }

        /**设置：IP地址 */

        public void setIp(String ip) {

                this.ip = ip;

        }

        /** 获取：IP地址*/

        public String getIp() {

                return ip;

        }

        /** 设置：创建时间*/

        public void setCreateDate(Date createdTime) {

                this.createdTime = createdTime;

        }

        /** 获取：创建时间*/

        public Date getCreatedTime() {

                return createdTime;

        }


        public Long getTime() {

                return time;

        }


        public void setTime(Long time) {

                this.time = time;

        }

		@Override
		public String toString() {
			return "SysLog [id=" + id + ", username=" + username + ", operation=" + operation + ", method=" + method
					+ ", params=" + params + ", time=" + time + ", ip=" + ip + ", createdTime=" + createdTime + "]";
		}
        
        

}